/**
 * node-stream.js
 */
const fs = require("fs");
const path =require("path");

let sFilePath = path.join(__dirname,"1.txt");
let dFilePath = path.join(__dirname,"2.txt");

let readStream = fs.createReadStream(sFilePath);
let writeStream = fs.createWriteStream(dFilePath);

readStream.pipe(writeStream);
